using UnityEngine;

public class DailyRewardPrefab : MonoBehaviour
{
	public UILabel lbDay;

	public UILabel lbAmount;

	public UISprite spriteBG;

	public void SetItem(int amount, int day, int today)
	{
		if (day < today)
		{
			lbDay.text = "第" + day + "天";
			spriteBG.color = new Color32(38, 147, 40, byte.MaxValue);
		}
		else if (day == today)
		{
			lbDay.text = "今天";
			spriteBG.color = new Color32(219, 47, 80, byte.MaxValue);
		}
		else
		{
			lbDay.text = "第" + day + "天";
			spriteBG.color = Color.grey;
		}
		lbAmount.text = "+" + amount;
	}
}
